<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String loginname  = (String)request.getSession().getAttribute("loginname");
if (loginname!=null && loginname.length()>1) { 
	response.sendRedirect(basePath+"base/index"); 
}else{
	response.sendRedirect(basePath+"base/login"); 
}
%>
